package com.example.kugou.service.serviceimpl;

import com.example.kugou.mapper.MvMapper;
import com.example.kugou.pojo.Mv;
import com.example.kugou.service.MvService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("mvService")
public class MvServiceImpl implements MvService {

    @Resource
    MvMapper mvMapper;

    public MvMapper getMvMapper() {
        return mvMapper;
    }

    public void setMvMapper(MvMapper mvMapper) {
        this.mvMapper = mvMapper;
    }

    @Override
    public List<Mv> showAllMV(Integer mvid) {
        return mvMapper.showAllMV(mvid);
    }

    @Override
    public int delete(Integer vid) {
        return mvMapper.delete(vid);
    }

    @Override
    public List<Mv> selectName(String name) {
        return mvMapper.selectName(name);
    }

    @Override
    public Mv selectmvById(int id) {
        return mvMapper.selectmvById(id);
    }

    @Override
    public int addMV(Mv mv) {
        return mvMapper.addMV(mv);
    }

    @Override
    public int updateMV(Mv mv) {
        return mvMapper.updateMV(mv);
    }


    @Override
    public List<Mv> selectMvBySingerId(int singerId) {
        return mvMapper.selectMvBySingerId(singerId);
    }
}
